|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
Semiconductor SD6830 4BIT MICROCONTROLLER 1. Description SD6830 is a remote control transmitter, consists of the optimized 4-bit CPU with ROM and RAM. It contains power-on reset, watchdog timer and carrier frequency generator. The SD6830 provide a various carrier frequency for encoding output of key matrix and has built-in transistor to drive infrared LED. The SD6830 is supported with a software development tool, which allows code development in a PC environment. It allows the user to simulate the SD6830 on an instruction level. 2. Features * Number of basic instructions ------------------------------------- 45 * Instruction cycle time (one word instruction) At Fsys=480KHz ---------------------------------------- 16.67uS At Fsys=455kHz ---------------------------------------- 17.58uS * Memory size ROM --------------------------------------------------- 1024 x 8 Bits RAM ------------------------------------------------------ 32 x 4 Bits * Input ports (D0 ~ D3, E0 ~ E3 : with pull-up resistor) * Output ports (C, G, K, F0 ~ F7) * Carrier frequency generator Fsys/12 (1/2 duty), Fsys/12 (1/3 duty), Fsys/12 (1/4 duty), Fsys/8 (1/2 duty), Fsys/8 (1/4 duty), Fsys/11 (4/11 duty), No carrier * Watchdog Timer * Built-in power on reset * Single power supply ------------------------------------------------ 1.8V ~ 3.6V * Power dissipation (stop mode , VDD = 3V) ----------------------- Less than 3uW * Package ------------------------------------------------------------- 20/24 DIP, 20/24 SOP * Low-power system applications such as an infrared remote controller * MASK OPTION 1. Divide ratio of the oscillator frequency 2. Whether connected infrared LED driver or not * Descriptions of this spec sheet assume that the SD6830 include driver for infrared LED. 3. Ordering Information Type NO. SD6830P-option SD6830-option SD6830P-option SD6830-option Marking SD6830P-option SD6830-option SD6830P-option SD6830-option Package Code DIP20 SOP20 DIP24 SOP24 KSI-W002-000 1 SD6830 4. Block Diagram VSS 1 OSCIN 2 OSC OSCOUT3 Watchdog Timer Z Carrier Frequency Generator 3 Port C 23 C/REM Test Control 4 3 G4 Port G 4 A 4 D0 5 D1 6 D2 7 D3 8 Port D 4 4 4 STACK 10 PC E0 9 E1 10 E2 11 E3 12 4 4 Key Input Detector OSC Start/Stop Control Port E 8 4 SF Instruction Decoder 10 CY ALU 20 F0 19 F1 18 F2 Port F 17 F3 16 F4 15 F5 14 F6 13 F7 4 B Port K 21 K 22 TEST 24 VDD Reset Control 4 H RAM L 4 ROM Figure 4-1 Block Diagram of the SD6830 KSI-W002-000 2 SD6830 5. PIN Assignment and Description 5.1 PIN Assignment for 24PINS( DIP24, SOP24) VSS OSCIN OSCOUT G D0 D1 D2 D3 E0 E1 E2 E3 1 2 3 4 5 6 7 8 9 10 11 12 OUTLINE 24 PIN DMC6830 24 23 22 21 20 19 VDD C/REM TEST K F0 F1 F2 F3 F4 F5 F6 F7 SD 6830 SD6830 18 17 16 15 14 13 Figure 5-1. Pin Assignment of 24 Pins 5.2 PIN Description for 24 PINS Symbol VDD VSS TEST OSCin OSCout C/REM D0 - D3 E0 - E3 F0 - F7 G K Pin No. 24 1 22 2 3 23 5~8 9 ~ 12 20 ~ 13 4 21 I /O INPUT INPUT OUTPUT OUTPUT INPUT INPUT OUTPUT OUTPUT OUTPUT Power Supply Ground Functions I/O Type Input for test ( Normally connected to VSS ) Input for oscillating Output for oscillating 1-Bit output for remote transmission 4-Bit input for key sense ( with pull-up resistor ) 4-Bit input for key sense ( with pull-up resistor ) 1-Bit individual output for key scan 1-Bit output 1-Bit output B A A C D D KSI-W002-000 3 SD6830 5.3 PIN Assignment for 20PINS( DIP20, SOP20) VSS OSCIN OSCOUT D0 D1 D2 D3 E0 E1 F6 1 2 3 4 5 6 7 8 9 10 OUTLINE 20 PIN 20 19 18 17 VDD C/REM TEST K F0 F1 F2 F3 F4 F5 SD 6830 DMC6830 SD6830 16 15 14 13 12 11 Figure 5-3. Pin Assignment of 20Pin 5.4 PIN Description for 20 PINS Symbol VDD VSS TEST OSCin OSCout C/REM D0 - D3 E0 - E1 F0 - F6 K Pin No. 20 1 18 2 3 19 4~7 8~9 16 ~ 10 17 I /O INPUT INPUT OUTPUT OUTPUT INPUT INPUT OUTPUT OUTPUT Power Supply Ground Functions I/O Type Input for test ( Normally connected to VSS ) Input for oscillating Output for oscillating 1-Bit output for remote transmission 4-Bit input for key scan ( with pull-up resistor ) 2-Bit input for key scan ( with pull-up resistor ) 1-Bit individual output for key scan 1-Bit output B A A C D KSI-W002-000 4 SD6830 5.5 I/O CIRCUIT SCHEMATICS VDD 30 150 PIN DATA VSS Note If STOP mode specified, the the TYPE C output becomes "L" state and the output B output becomes NOTE: :If STOP mode isis specified, TYPE C output becomes "L" state and the TYPE B TYPE becomes floating floating state, the TYPE D output maintains previous state. state state, the TYPE D output maintains previous Figure 5-5. I/O Circuit Schematics KSI-W002-000 5 SD6830 6. Basic Function Block 6.1 Program Counter (PC) Program counter is used to indicate the address of the next instruction to be executed. The 10-bit program counter consists of two registers, PCH(4-bit) and PCL (6-bit). This is a polynomial counter. 6.2 Program Memory (ROM) Program memory is used to store user-specified program. This consists of a 1024 x 8-bit. It is organized in 16 pages and each page is 64 bytes long. For page-in addressing, all instructions excluding JMPL and CALL can be executed by page. In order to execute jump or call in page, JMP or CAL is suitable. For page-to-page addressing, JMPL or CALL must be used. PROGRAM COUNTER PCHFigure 6-1. Program Memory Map (6-BIT) (4-BIT) PCL PAGE 0 000h 0 1 2 3 PAGE 15 60 61 62 63 0 RESET ADDRESS 1 2 3 60 PROGRAM MEMORY 61 62 63 KSI-W002-000 6 SD6830 6.3 Data Memory (RAM) Data memory is used to store various type of processing data. This consists of a 32-nibble, which is organized into two files of 16 nibbles each. RAM addressing is indirectly implemented by a two registers; H, L. It's upper 1-bit register (H) selects one of two files and its lower 4-bit register (L) selects one of 16 nibbles in the selected file. REG H (1-bit) REG L ( 4-bit ) FILE 0 FILE 1 0 1 2 0 3 1 2 3 4 Lower 3-bit PORT F F0 F1 F2 F3 F4 F5 12 13 14 12 15 13 14 15 F6 F7 DATA MEMORY Figure 6-2. Data Memory Map 6.4 Stack Register (SK) Stack register is used to store return address and provide a particularly mechanism for transferring control between programs. Two level hardware push/pop stacks are manipulated by CAL, CALL, and RET instructions. CAL/CALL instructions push the current program counter value, incremented by "1", into stack level 1. Stack level 1 is automatically pushed to level 2. If more than two subsequent CAL/CALL are executed, only the most recent two return addresses are stored. RET instruction load the contents of stack level 1 into the program counter while stack level 2 gets copied into level 1. If more than two subsequent RET are executed, the stack will be filled with the address previously stored in level 2. KSI-W002-000 7 SD6830 6.5 Arithmetic and Logic Unit (ALU) This unit is used to perform arithmetic and logical operations such as addition, comparison, and bit manipulation. 6.6 Carry Flag (CY) The carry flag contains the carry generated by the arithmetic and logical unit immediately after an operation. The set carry (SETB CY) and clear carry (CLRB CY) instructions allow direct access for setting and clearing this flag. 6.7 Skip Flag (SF) The skip flag is a 1-bit register, which enables programs to conditionally skip an instruction. All instructions are executed when this flag is The following instructions affect the skip flag , the program executes NOP instruction and resets SF to "0". Then program execution proceeds. Instructions Arithmetic ADD n INC L IF0 @HL.b IF0 CY IFEQU @HL IFEQU n STA @HL+ XCH @HL+ Set conditions of SF If carry occurs (L) = 0 M[HL].b = 0 (CY) = 0 (A) = M[HL].b (A) = n (L) = 0 (L) = 0 Compare Data Transfer The instructions, which doesn t affect the skip flag but have a skip condition, are as follows. Instructions Data Transfer Bit Manipulate LDA n LDL n SETB H CLRB H Skip conditions If it is continuous, skip next same instruction. If it is continuous, skip next same instruction. If SETB H or CLRB H are continuous, skip next SETB H or CLRB H instruction. KSI-W002-000 8 SD6830 6.8 Registers Register A Register A, called the accumulator, plays a central role, is used to store an input or an output operand (result) in the execution of most instructions. It consists of 4-bit. Register B Register B is used to store a temporary data in CPU. It consists of 4-bit. Register H Register H is used to indicate an address of the data memory in conjunction with register L. It consists of 1-bit, which is related with the bit 0 of accumulator Register L Register L is used to indicate an address of the data memory in conjunction with register H, Also lower 3-bit can be used to indicate the bit position of the port F. It consists of 4-bit Register Z Register Z is used to select a carrier frequency. The carrier frequency must be selected before Port C data write operation. It consists of 3-bit. Register Z Carrier frequency Bit 2 0 0 0 0 1 1 1 1 Bit 1 0 0 1 1 0 0 1 1 Bit 0 0 1 0 1 0 1 0 1 F SYS/12, 1/2 duty F SYS/12, 1/3 duty F SYS/12, 1/4 duty F SYS/8, 1/2 duty F SYS/8, 1/4 duty F SYS/11, 4/11 duty No carrier No carrier KSI-W002-000 9 SD6830 6.9 I /O Ports Port C/REM Port C/REM is a 1-bit output port, which is related with the bit 3 of accumulator, with CMOS N-channel open drain, which have large current sink capability, for I.R.LED drive. This output can be configured as carrier frequency by programming the register Z and port C data. This pin is put into the high-impedance state in stop mode. Port D Port D is a 4-bit input port with pull-up resistor. Forcing any input pins to "L" state, system reset occurs and it starts to operate from the reset address. Port E Port E is a 4-bit input port with pull-up resistor. Forcing any input pins to reset occurs and it starts to operate from the reset address. Port F Port F is an 8-bit output port with N-channel open drain. Each output which specified by the lower 3-bit of register L can be set and reset individually. All F pins are put into the low state in stop mode. Port G Port G is a 1-bit output port with N-channel open drain. When stop mode is specified, this pin still remains in the previous state. Set this pin to appropriate state before entering stop mode for visible LED or key scan application. Port K Port K is a 1-bit output port with N-channel open drain. When stop mode is specified, this pin still remains in the previous state. Set this pin to appropriate state before entering stop mode for visible LED or key scan application. KSI-W002-000 10 SD6830 6.10 Carrier frequency generator One of seven carrier frequencies can be selected and transmitted through the C/REM pin by programming the register Z and port C. Fosc/8 (1/2 duty ) Fosc/8 (1/4 duty ) Fosc/11 (4/11 duty ) Vdd ( No carrier ) Register Z output MUX VSS 3 / Fsys (Fsys/12, 1/2 duty) (Fsys/12, 1/3 duty) (Fsys/12, 1/4 duty) (Fsys/8, 1/2 duty) (Fsys/8, 1/4 duty) Figure 6-3 PORT C/REM and Carrier Output KSI-W002-000 11 SD6830 6.11 Watchdog timer (WDT) The watchdog timer provides the means to return to a reset condition when a system malfunction occurs and the program enters an infinite loop caused by noise or any abnormal state. Also this timer have a function of oscillation stabilization timer. This is a 13-bit counter, counts the clock which is divided twelve (FSYS/12). In the stop mode the oscillation circuit stops but when a key input is detected (Port D, Port E) oscillation starts. When 12288 clock cycles have been counted, the program will be executed from reset address (000H). If the port C data register's value does not change from "L" to "H" before the timer counts 98304 clock cycles, a device reset condition is generated. The oscillator stabilization time : 12/FSYS * 2 10 = 1/FSYS * 12288 = 27mS (@455KHz) The time-out period : 12/FSYS * 213 = 1/FSYS * 98304 = 216mS (@455KHz) Fsys/12 CLK Watchdog Timer (13-bit) OPSTART Operating Start OVERFLOW To Reset Logic RESET Power-on Reset Active Stop Mode Active PORT C Data : Low to High Transition Normal mode OSCOUT 27mS(Min.) PC WDT counting value 98304 Stop mode Normal mode Watchdog Timer Overflow PORT C Data Low to High STOP Instruction PORT C Data Low to High 12288 0 Time Figure 6-4. Function of Watchdog Timer KSI-W002-000 12 SD6830 6.12 Power-on reset The SD6830 incorporates an on-chip power-on reset circuitry which provides internal chip reset for most power-up situations. The power-on reset circuit and the watchdog timer are closely related. On power-up the power-on reset circuit is active and watchdog timer is reset. After the reset time, which is in proportion to the rate of rise of VDD, watchdog timer begins counting. After the oscillator stabilization time, which is typically 27mS in FSYS=455KHz, program execution proceeds from reset address (000H). VDD 7pF DMC6830 SD6830 VDD 1.8V 0.3VDD VDD PIN Internal /POR 2Mohm VSS Internal /POR 0 RESET TIME Figure 6-5. Built-in Power-on Reset 6.13 Stop mode The SD6830 support the stop mode to reduce power consumption. This mode is entered when the STOP instruction is executed during key inputs are not active. Activating any key inputs (Port D, Port E) the device is awakened from stop mode and restarts to operate from reset address. When the device is released from stop mode, following module set to appropriate value in reset routine: PORT G and PORT K. In stop mode, the oscillator is stopped and the each port state is as follows. Port C/REM become inactive state. ( Port G and Port K retain previous state. for including I.R.LED driver, after the reset release) KSI-W002-000 13 SD6830 VDD PORT D 4 PORT E 4 STOP instruction internal /POR WDT overflow STOP RESET SD6830 DMC6830 Key input ( PORT D or PORT E ) Internal /STOP OSCOUT 27mS(Min.) Stop mode Normal mode STOP instruction Stop mode Figure 6-6. Rest structure and Release Timing for STOP Mode to Normal Mode 6.14 OSC Divide Option The OSC divide option provides a maximum 1MHz system clock (FSYS). FOSC which is generated in oscillation circuit is divided eight or non-divide to produce F SYS. This dividing ratio will be selected by mask option. F OSC : Oscillator clock, FSYS : System clock (FOSC or FOSC /8) MASK OPTION OSC IN OSC OSC OUT FOSC DIVIDE-8 F SYS Figure 6-7 OSC Divide Option 7. Electrical Specifications 7.1 Absolute maximum ratings Symbols VDD VI VO T OPR T STG Parameters Supply Voltage Input Voltage Output Voltage Operating temperature Storage Temperature Conditions Ta=25E - Ratings -0.3 ~ 6.0 -0.3 ~ VDD + 0.3 -0.3 ~ VDD + 0.3 -20 ~ 85 -40 ~ 125 Units V V V E E KSI-W002-000 14 SD6830 7.2 Recommended operating conditions (VDD = 3V 10%, Ta=-20 ~ 70E, unless otherwise noted) Symbols VDD VIH1 VIH2 VIL1 VIL2 Parameters Supply Voltage "H" input Voltage, all input pins except OSCIN "H" input Voltage, OSCIN "L" input Voltage, all input pins except OSCIN "L" input Voltage, OSCIN Oscillating frequency Non-divide option Divide-8 option Min. 1.8 0.7VDD VDD-0.3 0 0 250 2 Typ. Max. 3.6 Units V -V V V V KHz MHz VDD VDD 0 0 VDD VDD 0.3 VDD 0.3 1000 6 F OSC 7.3 Electrical characteristics (VDD = 3V 10%, Ta= 25E , unless otherwise noted) Symbols VDD IOH IOL0 IOL1 IOL2 IOL3 ILIH1 ILIH2 ILIL ILOH RPULL-UP IDD IDDS F SYS F OSC Parameters Supply Voltage "H" output current "L" output current Test Conditions 250KHzAF OSCA 3.9MHz 3.9MHzAF OSCA 6.0MHz VO = 2.0V, Port C VO = 0.4V, Port C VO = 0.4V, Port C Min. 1.8 2.2 -6 1.5 180 0.5 1.5 -0.6 30 Typ. Max. Units 3.0 3.0 -9 3 210 1.0 3.0 3 -3 70 0.5 3.6 3.6 -14 4.5 240 2.0 4.5 3 10 -10 1 150 1.0 1.0 1000 1000 6 V V mA mA mA mA mA E E E E KU mA E KHz KHz MHz "L" output current VO = 0.4V, Port F VO = 0.4V, Port G/K VI = VDD, Port D/E VI = VDD, OSCIN VI = VSS, OSCIN VO = VDD, Port C/F/G/K VI = 0V, VD D =3V "H" input leakage current "L" input leakage current "H"output leakage current Pull-up resistance of input Port Supply current at normal mode Supply current at stop mode Clock frequency Oscillator frequency 250 Non-divide option Divide-8 option 250 2 KSI-W002-000 15 SD6830 8. Packing Outlines and Dimensions 24 SOP-300 0.4160(10.566) 0.3980(10.109) 0.2980(7.569) 0.2920(7.417) BASE PLANE SEATING PLANE 0.0118(0.300) 0.0040(0.102) 0.0200(0.508) 0.0138(0.351) 0.0125(0.318) 0.0091(0.231) 45 0.0160(0.406) 0.0100(0.254) 0.6100(15.494) 0.6040(15.342) 0.0500 BSC (1.270) 0.1040(2.642) 0.0940(2.388) UNIT : INCH (MM) 20 SOP-300 0.4160(10.566) 0.3980(10.109) 0.2980(7.569) 0.2920(7.417) 0.0500 BSC 0.0200(0.508) 0.0138(0.351) (1.270) BASE PLANE SEATING PLANE 0.0118(0.300) 0.0040(0.102) 0.0125(0.318) 0.0091(0.231) 0.5080(12.903) 0.5020(12.751) 45 0.0160(0.406) 0.0100(0.254) 0.0350(0.889) 0.0160(0.406) UNIT : INCH (MM) 0 ~8 0.1040(2.642) 0.0940(2.388) 16 KSI-W002-000 0~8 0.0350(0.889) 0.0160(0.406) 2-EJECTION MARK (OPTION 1) 1.043(26.492) 1.023(25.984) 1.265(32.131) 1.245(31.623) 0.035(0.889) 0.020(0.508) 0.035(0.889) 0.020(0.508) KSI-W002-000 0.145(3.683) 0.135(3.429) 0.180(4.572) 0.155(3.937) 0.140(3.556) 0.120(3.048) 20 DIP-300 UNIT : INCH (MM) 0.014(0.356) 0.008(0.200) 0.145(3.683) 0.135(3.429) 0.180(4.572) 0.155(3.937) 0.140(3.556) 0.120(3.048) 0 . 0 7 9 ( 2 . 0 0 7 ) 0 . 0 6 5 ( 1 . 6 5 0 0 . 0 2 1 ( 0 . 5 3 30). 1 0 0 B S C ) 0 . 0 5 9 ( 1 . 4 9 9 ) 0 . 0 5 0 ( 1 . 2 7 0 0 . 0 1 5 ( 0 . 3 8 1 )( 2 . 5 4 0 ) ) 0.090(2.286) 0.065(1.650) 0.070(1.778) 0.050(1.270) 0.021(0.533) 0.015(0.381) 0.100 BSC (2.540) 0.300 BSC (7.620) 0.270(6.858) 0.250(6.350) 0.300 BSC (7.620) 0.270(6.858) 0.250(6.350) 24 DIP-300 UNIT : INCH (MM) SD6830 3 ~ 11 3 ~ 11 0.014(0.356) 0.008(0.200) 17 SD6830 9. Instructions 9.1 Symbol Description SYMBOL A,B,L H Z PCH PCL PC SK CY SF C, G, K D, E F c M[(HL)] or @HL 4 Bit Register 1-Bit Register 3-Bit Register The Higher 4-Bit of the Program Counter The Lower 6-Bit of the Program Counter 10-Bit Program Counter ( Consisting of the PCH and PCL ) 10-Bit Stack Register 1-Bit Carry Flag 1-Bit Skip Flag 1-Bit Port 4-Bit Port 8-Bit Port Direction of Data Flow The Contents of Data Memory Addressed by Reg HL DESCRIPTIONS M[(HL)].b or @HL.b The Specified Bit's Content of Data Memory Addressed by Reg HL @HL+ addr n As a result of execution, increment L by one Address immediate data KSI-W002-000 18 SD6830 9.2 Opcode Map MSB 0000b LSB 0000b 0001b 0010b 0011b 0100b 0101b 0110b 0111b 1000b 1001b 1010b 1011b 1100b 1101b 1110b 1111b 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h Ah Bh Ch Dh Eh Fh IFEQU n IFEQU @HL CLRB CY SETB CY CLRB F SETB F STA C IF0 CY RET STA B STA L CLRB G SETB G CLRB K SETB K IF0 @HL.b STA H 0001b 1h ADDC @HL LDA H LDA E RRC LDA D LDA B LDA L NOT 0010b 2h XCH @HL+ XCH @HL INC L LDA @HL CLRB H SETB H 0011b 3h 0100b 4h 0101b 5h 0110b 6h 0111b 7h 1000b~ 1100b~ 1011b 1111b 8h~Bh Ch~Fh 0h NOP STOP CALL addr LDZ n JMPL addr STA @HL+ STA @HL LDL n ADD n LDA n JMP addr CAL addr CLRB @HL.b SETB @HL.b KSI-W002-000 19 SD6830 9.3 Instruction Descriptions ADD n Binary code Syntax Operation Flags Words/Cycles Description Example the accumulate. : 0110xxxx : [ |
Price & Availability of SD6830 |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |